package com.wxw.BaseLibrary.tool;

import android.app.Activity;
import android.view.Window;
import android.view.WindowManager;

/**
 *
 * @author david
 * @date 2014-06-25
 */
public class ActivityTool {
    public static void fullScreen(Activity activity){
        // 全屏显示
        activity.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
                WindowManager.LayoutParams.FLAG_FULLSCREEN);
    }

    public static void hideTitle(Activity activity){
        activity.requestWindowFeature(Window.FEATURE_NO_TITLE);
    }
}
